package com.yao.dubboconsumer.discovery;

import com.yao.dubboconsumer.loadbalance.LoadBalance;

/**
 * @author Henry Yao
 * @since 2021/5/3
 */
public interface ServiceDiscovery {
    /**
     * 根据serviceName返回提供者的地址,可以指定负载均衡策略
     *
     * @param serviceName
     * @param type
     * @return
     */
    String discovery(String serviceName, LoadBalance.Type type) throws Exception;
}
